package com.yantong.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券
 * @author kanghaixin
 */
public class Ticket {

    private Long teamId;
    /**
     * 主键
     */
    private Long id;
    /**
     * 优惠券名称
     */
    private String ticketName;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 使用范围类型
     */
    private Integer rangeType;
    /**
     * 商品ID
     */
    private String productId;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 一级分类
     */
    private Long pcate;
    /**
     * 二级分类
     */
    private Long ccate;
    /**
     * 二级分类名称

     */
    private String ccateName;
    /**
     * 红包描述
     */
    private String ticketDesc;
    /**
     * 使用条件
     */
    private BigDecimal condition;
    /**
     * 面额
     */
    private BigDecimal amount;
    /**
     * 总数
     */
    private Integer total;
    /**
     * 剩余
     */
    private Integer stock;
    /**
     * 剩余
     */
    private Integer addNum;
    /**
     * 单人领取限制
     */
    private Integer limit;
    /**
     * 有效期
     */
    private Integer period;
    /**
     * 开放时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    /**
     * 停用时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     * 失效日期
     */
    private Date expiryDate;
    /**
     * 是否有效0-有效，1-无效
     */
    private Integer isInvalid;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 操作人ID
     */
    private Long operateId;
    /**
     * 操作人姓名
     */
    private String operateName;
    /**
     * 是否删除
     */
    private Integer del;
    /**
     * 商户ID
     */
    private Long centreId;
    /**
     * 是否公开
     */
    private Integer isOpen;

    private String ticketImg;//优惠卷图片
    //活动相关联的产品ID
    private Long activityProductId;
    //活动产品对应的套餐价
    private BigDecimal activityPrice;
    //活动ID
    private Long activityId;
    //活动产品表t_activity_product的主键ID
    private Long activityProductKey;
    //一张券可以使用的次数
    private Integer count;

    private String cardNumber;
    private String password;

    //'是否聚合支付赠送 0-否，1-是'
    private Integer isJuhepayTicket;

    private Long productGradeId;

    private Long industryId;

    private Long industryBrandId;
    private String industryBrandName;

    private String usableTeam;
    private String usableTeamName;

    private Integer usableFlag;

    public Integer getUsableFlag() {
        return usableFlag;
    }

    public void setUsableFlag(Integer usableFlag) {
        this.usableFlag = usableFlag;
    }

    /**
     * 大礼包核销金额
     */
    private BigDecimal bigGiftAmount;

    public String getUsableTeam() {
        return usableTeam;
    }

    public void setUsableTeam(String usableTeam) {
        this.usableTeam = usableTeam;
    }

    public String getUsableTeamName() {
        return usableTeamName;
    }

    public void setUsableTeamName(String usableTeamName) {
        this.usableTeamName = usableTeamName;
    }

    public BigDecimal getBigGiftAmount() {
        return bigGiftAmount;
    }

    public void setBigGiftAmount(BigDecimal bigGiftAmount) {
        this.bigGiftAmount = bigGiftAmount;
    }

    public String getIndustryBrandName() {
        return industryBrandName;
    }

    public void setIndustryBrandName(String industryBrandName) {
        this.industryBrandName = industryBrandName;
    }

    public Long getIndustryBrandId() {
        return industryBrandId;
    }

    public void setIndustryBrandId(Long industryBrandId) {
        this.industryBrandId = industryBrandId;
    }

    public Long getIndustryId() {
        return industryId;
    }

    public void setIndustryId(Long industryId) {
        this.industryId = industryId;
    }

    public Long getProductGradeId() {
        return productGradeId;
    }

    public void setProductGradeId(Long productGradeId) {
        this.productGradeId = productGradeId;
    }


    public Integer getIsJuhepayTicket() {
        return isJuhepayTicket;
    }

    public void setIsJuhepayTicket(Integer isJuhepayTicket) {
        this.isJuhepayTicket = isJuhepayTicket;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTicketImg() {
		return ticketImg;
	}

	public void setTicketImg(String ticketImg) {
		this.ticketImg = ticketImg;
	}

	public String getCcateName() {
        return ccateName;
    }

    public void setCcateName(String ccateName) {
        this.ccateName = ccateName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName == null ? null : ticketName.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRangeType() {
        return rangeType;
    }

    public void setRangeType(Integer rangeType) {
        this.rangeType = rangeType;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Long getPcate() {
        return pcate;
    }

    public void setPcate(Long pcate) {
        this.pcate = pcate;
    }

    public Long getCcate() {
        return ccate;
    }

    public void setCcate(Long ccate) {
        this.ccate = ccate;
    }

    public String getTicketDesc() {
        return ticketDesc;
    }

    public void setTicketDesc(String ticketDesc) {
        this.ticketDesc = ticketDesc == null ? null : ticketDesc.trim();
    }

    public BigDecimal getCondition() {
        return condition;
    }

    public void setCondition(BigDecimal condition) {
        this.condition = condition;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getAddNum() {
        return addNum;
    }

    public void setAddNum(Integer addNum) {
        this.addNum = addNum;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(Date expiryDate) {
        this.expiryDate = expiryDate;
    }

    public Integer getIsInvalid() {
        return isInvalid;
    }

    public void setIsInvalid(Integer isInvalid) {
        this.isInvalid = isInvalid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getOperateId() {
        return operateId;
    }

    public void setOperateId(Long operateId) {
        this.operateId = operateId;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName == null ? null : operateName.trim();
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    public Long getCentreId() {
        return centreId;
    }

    public void setCentreId(Long centreId) {
        this.centreId = centreId;
    }

    public Integer getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(Integer isOpen) {
        this.isOpen = isOpen;
    }

    public Long getTeamId() {
        return teamId;
    }

    public void setTeamId(Long teamId) {
        this.teamId = teamId;
    }

    public Long getActivityProductId() {
        return activityProductId;
    }

    public void setActivityProductId(Long activityProductId) {
        this.activityProductId = activityProductId;
    }

    public BigDecimal getActivityPrice() {
        return activityPrice;
    }

    public void setActivityPrice(BigDecimal activityPrice) {
        this.activityPrice = activityPrice;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getActivityProductKey() {
        return activityProductKey;
    }

    public void setActivityProductKey(Long activityProductKey) {
        this.activityProductKey = activityProductKey;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}